<?php
//缺钱状态
class NoMoney implements State {
    private $game;
    const CENTS = 25;
    public function __construct(Game $game)
    {
        $this->game = $game;
    }
    public function insertMoney($money){
        if ($money == self::CENTS)
        {
            echo "投入成功，请开始 游戏";
            $this->game->setState($this->game->getHasMoneyState());
        } else {
            echo "投入失败，请投".self::CENTS."分钱";
        }
    }
    public function turn() {
        echo "请投".self::CENTS."分钱";
    }
    public function get() {
        echo "请投".self::CENTS."分钱";
    }
    public function reject(){
        echo "请投".self::CENTS."分钱";
    }
}